package com.yiji.fintech.musfinance.center.deposit.order.facade;

import com.acooly.core.utils.Money;
import com.acooly.core.utils.ToString;
import com.yiji.fintech.musfinance.base.enums.DeviceTypeEnum;
import com.yiji.fintech.musfinance.center.base.order.OrderFacade;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 *支付宝app
 * Created by ouwen@yiji.com} on 2017/5/8.
 */
@Data
public class AliAppPayFacadeOrder extends OrderFacade {
    /**付款金额-必填*/
    @NotNull
    private Money amount;
    /**必填*/
    @NotEmpty
    private String appId;
    /**设备类型 必填*/
    @NotNull
    private DeviceTypeEnum deviceType;
    /**商品描述 必填*/
    @NotEmpty
    private String goodsMemo;
    /** 终端IP 必填*/
    @NotEmpty
    private String mchCreateIp;
    @Override
    public String toString() {
        return ToString.toString(this);
    }
}
